﻿namespace System.Drawing
{
    internal static class ColorExt
    {
        internal static Color Brighten(this Color color, int level = 30)
        {
            int r = (color.R + level) > 255 ? 255 : color.R + level;
            int g = (color.G + level) > 255 ? 255 : color.G + level;
            int b = (color.B + level) > 255 ? 255 : color.B + level;

            return Color.FromArgb(r, g, b);
        }
    }
}
